
var order = require("../models/order");

updatePay1 = function (order_sheet,wxOrder,out_trade_no) {
    return new Promise((resolve, reject) => {
        order.update({order_sheet: order_sheet},{$set: {wxOrder: wxOrder, out_trade_no: out_trade_no}},(err,docs) => {
            if (err) reject(err)
            else resolve(docs)
        })
    })
}

module.exports = updatePay1